package com.lemobar.pay.model.notify;

import lombok.Data;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

@Data
public class WxPayOrderNotifyCoupon implements Serializable {
    private static final long serialVersionUID = -4165343733538156097L;
    private String couponId;
    private String couponType;
    private Integer couponFee;

    public Map<String, String> toMap(int index) {
        Map<String, String> map = new HashMap();
        map.put("coupon_id_" + index, this.getCouponId());
        map.put("coupon_type_" + index, this.getCouponType());
        map.put("coupon_fee_" + index, this.getCouponFee() + "");
        return map;
    }
}